<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('swipers', function (Blueprint $table) {
            $table->id();
            $table->string('name')->nullable()->comment('名称');
            $table->string('image')->nullable()->comment('图片地址');
            $table->string('url')->nullable()->comment('链接地址');
            $table->string('status')->default("1")->comment('状态');
            $table->unsignedInteger('order')->default(1)->comment('排序');
            $table->string('description', 500)->nullable()->comment('描述');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('swipers');
    }
};
